let obj = {
    name: "Hydra",
    age: 35,
    [Symbol.iterator]: function*() {
        yield ["name","Hydra"],
        yield ["age",35]
    }
}

let map = new Map(obj);
console.log(map);